<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" type="text/css" media="screen and (min-width: 900px),only screen and (min-device-width： 900px)" href="css/six.css"/>
    <link rel="stylesheet" type="text/css" media="screen and (max-width: 900px),only screen and （max-device-width： 900px）" href="css/six_change.css"/>
    <title>Document</title>
</head>

<body>
    <div class="left">
        <h2>
            <img src="img/logo.jpg" alt="">
            <span>Rukada Admin</span>
        </h2>
        <ul>
            <li class="li_one">MAIN NAVIGATION</li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-1.jpg" alt="">
                    <span>Dashboard</span>
                </div>
                <img src="img/xiaojiantu.jpg" alt="">
            </li>
            <li class="li_one">LABELS</li>
            <li>
                <div class="left_he">
                    <img src="img/img-2.jpg" alt="">
                    <span>Important</span>
                </div>
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-2.jpg" alt="">
                    <span>Important</span>
                </div>
            </li>
            <li>
                <div class="left_he">
                    <img src="img/img-2.jpg" alt="">
                    <span>Important</span>
                </div>
            </li>
        </ul>
    </div>
    <div class="right">
        <header>
            <div class="right_left">
                <img src="img/sangang.jpg" alt="">
                <input type="text" placeholder="Enter keywords">
            </div>
            <div class="right_right">
                <img src="img/header-1.jpg" alt="">
                <img src="img/header-2.jpg" alt="">
                <img src="img/header-3.jpg" alt="">
                <img src="img/header-4.jpg" alt="">
            </div>
        </header>
        <section>
            <div class="section_left">
                <span>Form Input</span>
                <p><a href="">Rukada</a> / <a href="">Forms</a> / <span>Form Input</span></p>
            </div>
            <img src="img/annnnn.jpg" alt="">
        </section>
        <div class="zhong">
            <div class="ul_two">
                <ul style="width:60%;">
                    <li style="border-bottom: 1px solid #99a4ac;">BAR CHART</li>
                    <li id="ul_one" style="width:100%;height:420px"></li>
                </ul>
                <ul style="width:38%;">
                    <li style="  border-bottom: 1px solid #99a4ac;">DONUT CHART</li>
                    <li id="ul_two" style="width:100%;height:420px"></li>
                </ul>
            </div>
            <ul>
                <li style="  border-bottom: 1px solid #99a4ac;">LINE CHART</li>
                <li id="ul_three" style="width:98%;height:430px"></li>
            </ul>
            <ul>
                <li style="  border-bottom: 1px solid #99a4ac;">AREA CHART</li>
                <li id="ul_four" style="width:98%;height:430px"></li>
            </ul>
        </div>
        <div class="foot">
            <p> Copyright © 2018 Rukada Admin</p>
        </div>
    </div>
</body>

</html>
<script src="js/echarts.js"></script>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/publick.js"></script>
<script type="text/javascript">
    one();
    two();
    three();
    four();
    fn();

    function one() {
        var myChart = document.getElementById('ul_one');
        var myChart = echarts.init(document.getElementById('ul_one'));
        option = {
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                type: 'value'
            },
            series: [{
                data: [120, 200, 150, 80, 70, 110, 130],
                type: 'bar'
            }]
        };
        myChart.setOption(option);
        window.addEventListener("resize", function () {

            myChart.resize();

        });
    }

    function two() {
        var myChart1 = document.getElementById('ul_two');
        var myChart1 = echarts.init(document.getElementById('ul_two'));
        var option = {
            tooltip: { //提示框组件
                trigger: 'item', //触发类型(饼状图片就是用这个)
                formatter: "{a} <br/>{b} : {c} ({d}%)" //提示框浮层内容格式器
            },
            color: ['#48cda6', '#fd87fb', '#11abff', '#ffdf6f', '#968ade'], //手动设置每个图例的颜色
            legend: { //图例组件
                //right:100,  //图例组件离右边的距离
                orient: 'horizontal', //布局  纵向布局 图例标记居文字的左边 vertical则反之
                width: 40, //图行例组件的宽度,默认自适应
                x: 'right', //图例显示在右边
                y: 'center', //图例在垂直方向上面显示居中
                itemWidth: 10, //图例标记的图形宽度
                itemHeight: 10, //图例标记的图形高度
                data: ['正常', '一般', '提示', '较急', '特急'],
                textStyle: { //图例文字的样式
                    color: '#333', //文字颜色
                    fontSize: 12 //文字大小
                }
            },
            series: [ //系列列表
                {
                    name: '设备状态', //系列名称
                    type: 'pie', //类型 pie表示饼图
                    center: ['40%', '50%'], //设置饼的原心坐标 不设置就会默认在中心的位置
                    radius: ['50%', '70%'], //饼图的半径,第一项是内半径,第二项是外半径,内半径为0就是真的饼,不是环形
                    itemStyle: { //图形样式
                        normal: { //normal 是图形在默认状态下的样式；emphasis 是图形在高亮状态下的样式，比如在鼠标悬浮或者图例联动高亮时。
                            label: { //饼图图形上的文本标签
                                show: false //平常不显示
                            },
                            labelLine: { //标签的视觉引导线样式
                                show: false //平常不显示
                            }
                        },
                        emphasis: { //normal 是图形在默认状态下的样式；emphasis 是图形在高亮状态下的样式，比如在鼠标悬浮或者图例联动高亮时。
                            label: { //饼图图形上的文本标签
                                show: true,
                                position: 'center',
                                textStyle: {
                                    fontSize: '10',
                                    fontWeight: 'bold'
                                }
                            }
                        }
                    },
                    data: [{
                            value: 80,
                            name: '正常'
                        },
                        {
                            value: 10,
                            name: '一般'
                        },
                        {
                            value: 30,
                            name: '提示'
                        },
                        {
                            value: 20,
                            name: '较急'
                        },
                        {
                            value: 25,
                            name: '特急'
                        }
                    ]
                }
            ]
        };
        myChart1.setOption(option);
        window.addEventListener("resize", function () {

            myChart1.resize();

        });
    }

    function three() {
        var myChart2 = document.getElementById('ul_three');
        var myChart2 = echarts.init(document.getElementById('ul_three'));
        var colors = ['#5793f3', '#d14a61', '#675bba'];
        option = {
            color: colors,

            tooltip: {
                trigger: 'none',
                axisPointer: {
                    type: 'cross'
                }
            },
            legend: {
                data: ['2015 降水量', '2016 降水量']
            },
            grid: {
                top: 70,
                bottom: 50
            },
            xAxis: [{
                    type: 'category',
                    axisTick: {
                        alignWithLabel: true
                    },
                    axisLine: {
                        onZero: false,
                        lineStyle: {
                            color: colors[1]
                        }
                    },
                    axisPointer: {
                        label: {
                            formatter: function (params) {
                                return '降水量  ' + params.value +
                                    (params.seriesData.length ? '：' + params.seriesData[0].data : '');
                            }
                        }
                    },
                    data: ["2016-1", "2016-2", "2016-3", "2016-4", "2016-5", "2016-6", "2016-7", "2016-8",
                        "2016-9", "2016-10", "2016-11", "2016-12"
                    ]
                },
                {
                    type: 'category',
                    axisTick: {
                        alignWithLabel: true
                    },
                    axisLine: {
                        onZero: false,
                        lineStyle: {
                            color: colors[0]
                        }
                    },
                    axisPointer: {
                        label: {
                            formatter: function (params) {
                                return '降水量  ' + params.value +
                                    (params.seriesData.length ? '：' + params.seriesData[0].data : '');
                            }
                        }
                    },
                    data: ["2017-1", "2017-2", "2017-3", "2017-4", "2017-5", "2017-6", "2017-7", "2017-8",
                        "2017-9", "2017-10", "2017-11", "2017-12"
                    ]
                }
            ],
            yAxis: [{
                type: 'value'
            }],
            series: [{
                    name: '2017 降水量',
                    type: 'line',
                    xAxisIndex: 1,
                    smooth: true,
                    data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
                },
                {
                    name: '2016 降水量',
                    type: 'line',
                    smooth: true,
                    data: [3.9, 5.9, 11.1, 18.7, 48.3, 69.2, 231.6, 46.6, 55.4, 18.4, 10.3, 0.7]
                }
            ]
        };
        myChart2.setOption(option);
        window.addEventListener("resize", function () {

            myChart2.resize();

        });
    }

    function four() {
        var myChart3 = document.getElementById('ul_four');
        var myChart3 = echarts.init(document.getElementById('ul_four'));
        var colors = ['#5793f3', '#d14a61', '#675bba'];
        option = {
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'cross',
                    label: {
                        backgroundColor: '#6a7985'
                    }
                }
            },
            legend: {
                data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
            },
            toolbox: {
                feature: {
                    saveAsImage: {}
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [{
                type: 'category',
                boundaryGap: false,
                data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
            }],
            yAxis: [{
                type: 'value'
            }],
            series: [{
                    name: '邮件营销',
                    type: 'line',
                    stack: '总量',
                    areaStyle: {},
                    data: [0, 800, 400, 340, 900, 390, 530]
                },
                {
                    name: '搜索引擎',
                    type: 'line',
                    stack: '总量',
                    label: {
                        normal: {
                            show: true,
                            position: 'top'
                        }
                    },
                    areaStyle: {
                        normal: {}
                    },
                    data: [500, 932, 901, 934, 1290, 1330, 1320]
                }
            ]
        };
        myChart3.setOption(option);
        window.addEventListener("resize", function () {

            myChart3.resize();

        });
    }
</script>